/*
 * Copyright (c) 2023 IUV Inc. All rights reserved.
 * 项目名称：IUV TXY
 * 文件名：IuvDateUtil.java
 * Date：23-10-10 下午2:09
 * Author：Will
 */

package com.iuv.baike.util;

import java.time.LocalDateTime;

/**
 * IuvDateUtil
 * 时间处理工具类
 * @author Will
 * @date 10:43
 */
public class IuvDateUtil {

    /**
     * 判断当时时间是否在给定时间之前
     * @param date
     * @return
     */
    public static boolean isBeforeDate(LocalDateTime date) {
        boolean isBefore = false;
        if (date != null) {
            isBefore = LocalDateTime.now().isBefore(date);
        }
        return isBefore;
    }
}
